
<div style="padding: 15px;">
    <table id="projectTable" lay-filter="optionTable"></table>
</div>

<script type="text/javascript">
    layui.use('table', function() {
        let table = layui.table;
        table.render({
            elem: '#projectTable'
            , url: '/option/list2'
            , cols: [
                [
                    {field: 'projectId', title: '项目编号', align: 'center'}
                    , {
                    field: 'projectName', title: '项目名称', templet: function (res) {
                        return res.projectEntity.projectName;
                    }, align: 'center'
                }
                    , {field: 'staffId', title: '提出人编号', align: 'center'}
                    , {field: 'content', title: '意见内容', align: 'center'}
                ]
            ]
        });
    });
</script>